from rest_framework.viewsets import ModelViewSet
from meiduo_admin.utils import MyNumbPage
from goods.models import SpecificationOption
from .serializers import SpecOptSerializer


class OptionViewSet(ModelViewSet):
    serializer_class = SpecOptSerializer
    pagination_class = MyNumbPage
    queryset = SpecificationOption.objects.all()
